package com.tgy.crud.components;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

@Slf4j
public class MyServletContextListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent sce) {


    }

    @Override
    public void contextInitialized(ServletContextEvent sce) {


        log.info(sce.getServletContext().getRealPath("") + "------");
    }
}
